using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Property : MonoBehaviour
{
    public float HealPoint;
    //[HideInInspector] public float HealPointAdd;

    public float Attack;
    //[HideInInspector] public float AttackAdd;

    public float Defence;

    //[HideInInspector] public float DefenceAdd;

    public int Range;

    //[HideInInspector] public int RangeAdd;

    public float Speed;
    //[HideInInspector] public float SpeedAdd;

    public float AttackSpeed { set { _AttackSpeed = value > 1.5f ? 1.5f : value; } get { return _AttackSpeed; } }
    private float _AttackSpeed;
    //[HideInInspector] public float AttackSpeedAdd;

    public void InitByCard(Card card)
    {
        HealPoint = card.HealPoint;
        Attack = card.Attack;
        Defence = card.Defence;
        Range = card.Range;
        Speed = card.Speed;
        AttackSpeed = card.AttackSpeed;
    }
}
